import request from '@/utils/request'
export interface getshareType {
    pageSize: number,
    currentPage: number,
    calssid?: number
}
export default {
    //获取全部帖子
    getAllShare: (data: getshareType) => request.post("/getAllShare", data),
    //获取根据类型查
    getShareByClassid: (data: any) => request.post("/getShareByClassid", data),
    //增加帖子
    addShare: (data: any) => request.post("/addShare", data),
    //删除帖子
    deleteShare: (data: any) => request.delete("/deleteShare", { params: data }),
    //修改帖子
    updateShare: (data: any) => request.put("/updateShare", data),
    //获取单个帖子
    getOneShare: (data: any) => request.put("/getOneShare", data),
    //帖子模糊查询
    SearchShare: (data: any) => request.post("/SearchShare", data),



}